import httpInstance from "@/utils/http"

export const getDetail = (id) => {
  return httpInstance('/goods',{
    params:{id}
  })
}

export const getHotGoodsAPI = (id,type,limit=3) => {
  return httpInstance.get('/goods/hot',{
    params:{
      id,
      type,
      limit
    }
  })
}
// export const getHotGoodsAPI = ({ id, type, limit = 3 }) => {
//   return httpInstance({
//     url:'/goods/hot',
//     params:{
//       id, 
//       type, 
//       limit
//     }
//   })
// }